package com.chao.wind3j.base.config.shiroConfig.advisor;

import org.apache.shiro.spring.aop.SpringAnnotationResolver;
import org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor;

public class CCAuthorityAopInterceptor extends AopAllianceAnnotationsAuthorizingMethodInterceptor {
  public CCAuthorityAopInterceptor() {
    super();
    // 添加自定义的注解拦截器
    var springAnnotationResolver = new SpringAnnotationResolver();
    this.methodInterceptors.add(new PermissionMethodInterceptor(new SpringAnnotationResolver()));
    this.methodInterceptors.add(new RolesMethodInterceptor(new SpringAnnotationResolver()));
  }

}
